<?php
class User {
    
    private $userid;
    private $username;
    private $password;
    private $hash;
    private $userdata;
    
    public function getUserId() {
        return $this->userid;
    }
    
    public function setUserId($userid) {
        $this->userid = $userid;
    }
    
    public function getUsername() {
        return $this->username;
    }
    
    public function setUsername($username) {
        $this->username = $username;
    }
    
    public function getPassword() {
        return $this->password;
    }
    
    public function setPassword($password) {
        $this->password = $password;
    }
    
    public function getHash() {
        return $this->hash;
    }
    
    public function setHash($hash) {
        $this->hash = $hash;
    }
    
    public function getUserInfo($needle) {
        // select sql
        return $user[$needle];
    }
    
    public function setUserInfo($needle) {
        // update sql
    }
    
    public function isMember($username) {
        return false;
    }
    
    public function login($username,$password) {
        return $array;
    }
        
}

?>